<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/taglib/cw" prefix="CW" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--系统css  -->
<link href="<%=basePath%>css/en/list.css" rel="stylesheet" type="text/css">
<!--通用js  -->
<script type="text/javascript" src="<%=basePath%>js/commons/common_list.js"></script>
</head>
<body >
<form method="post" id="srcForm" name="srcForm" action="<%=basePath%>/withdraw/findList.action" >
<div class="pageheader">
	<div class="pagetitle">
	<!-- 模块名称  -->
	<s:property value="actionTitle" />
	</div>
	<!-- 列表头 -->
	<div class="pageheadercontent">
		<!-- 查询条件 -->
		<table class="searchtbl">
			<tr>
	            <th width="15%">
	            	状态：
	            </th>
	            <td width="18%">
	           		<select name="withdraw.status"> 
						<option value="">--请选择--</option>
						<option value="1">申请中</option>
						<option value="2">已提现</option>
					</select>
	            </td>
	            <td style="text-align: center;">
					<input type="button" class="searchbtn" value="搜索" onclick="_search()">
				</td>
           	</tr>
		</table>
		<!-- 工具栏 -->
		<div class="toolbar">
			<!-- 操作 -->
			<div class="toolbarright" style="font-size:14px;">
				<input type="button" value="积分提现" style="width:100px" class="addbtn" onclick="_add('<%=basePath%>/withdraw/gotoAddScore.action','积分提现');return false;">
				<input type="button" value="代金币提现" style="width:100px" class="addbtn" onclick="_add('<%=basePath%>/withdraw/gotoAddGold.action','代金币提现');return false;">
			</div>
		</div>
	</div>
</div>
<div style="width:100%;text-align:left;height:40px;line-height:40px;padding-left:15px;">
	提现积分总额：<s:property value="statistics.yt_score" />，未提现积分总额：<s:property value="statistics.wt_score" />；提现代金币总额：<s:property value="statistics.yt_gold" />，未提现代金币总额：<s:property value="statistics.wt_gold" />
</div>
<table class="gridview tablesorter" cellpadding="0" cellspacing="0" width="100%">
	<thead>
	<tr  class="gridview_color">
        <th>提现金额（元）</th>
        <th>消耗积分</th>
        <th>消耗代金币</th>
        <th>申请时间</th>
        <th>充值时间</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <s:if test="page.resultList.size()>0">
        <s:iterator value="page.resultList" var="withdraw" status="status">
        <s:if test="%{#status.count%2 == 0}">
		<tr class="gridview_color">
		</s:if>
            <td title="<s:property value="amount" />"><s:property value="amount" /></td>
            <td title="<s:property value="w_score" />"><s:property value="w_score" /></td>
            <td title="<s:property value="w_gold" />"><s:property value="w_gold" /></td>
            <td title="<s:date name="create_time" format="yyyy/MM/dd HH:mm:ss" />"><s:date name="create_time" format="yyyy/MM/dd HH:mm:ss" /></td>
            <s:if test="%{update_time != null}">
            	<td title="<s:date name="update_time" format="yyyy/MM/dd HH:mm:ss" />"><s:date name="update_time" format="yyyy/MM/dd HH:mm:ss" /></td>
            </s:if>
            <s:else>
            	<td title="未充值">未充值</td>
            </s:else>
            <td>
	            <s:if test="%{status == 1}">申请中</s:if>
	            <s:if test="%{status == 2}">已提现</s:if>
            </td>
			<td>
				<a href="#" onclick="_detail('<%=basePath%>/withdraw/gotoDetail.action?id=<s:property value="id" />','提现详情');return false;">[&nbsp;详情&nbsp;]</a>
			</td>
        </tr>
        </s:iterator>
    </s:if>
    </tbody>
</table>
<s:else>
	<jsp:include page="../../common/nullPage.jsp" />
</s:else>
<!--分页条-->
<CW:page property="page" url="/withdraw/findList.action"></CW:page>
</form>
<span class="_height"></span>
</body>
</html>
